﻿using System;
using System.ComponentModel;

namespace MoveTheCar.Utilities
{
    /// <summary>
    /// INotifyPropertyChanged class
    /// Data binding made easy.
    /// </summary>
    public class INPC : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        public void RaisePropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                PropertyChangedEventArgs e = new PropertyChangedEventArgs(propertyName);
                handler(this, e);
            }
        }
    }
}
